package com.yanqu.road.server.manger.activity.turtle;

import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.entity.activity.turtle.config.TurtleModel;
import com.yanqu.road.entity.activity.turtle.config.TurtleTemplate;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author : Cxp
 * @Time : 2024-09-06
 * @Description : 乌龟对对碰-配置类 t_s_activity_config
 */

public class TurtleConfig {
    private int goldId; // 龟龟金币id
    private int silverId; // 龟龟银币id
    private int dollId; // 乌龟玩偶id
    private int itemId; // 乌龟对对碰体力道具id
    private int bossImageId; // 商店老板形象id
    private int scoreId; // 乌龟对对碰积分ID
    private int guaranteeNum; // 保底数（连续n次差模板 下次必出好模板）
    private int startNum; // 开启一局游戏的体力数量

    private Map<Integer, TurtleTemplate> templateMap; // 消除模板
    private Map<Integer, TurtleTemplate> badTemplateMap; // 坏模板
    private Map<Integer, TurtleTemplate> goodTemplateMap; // 好模板
    private Map<Integer, TurtleModel> modelMap; // 消除类型

    private ActivityInfo activityInfo;

    public TurtleConfig(ActivityInfo activityInfo) {
        this.activityInfo = activityInfo;
    }

    public int getActivityId(){
        if(this.activityInfo == null){
            return 0;
        }
        return activityInfo.getActivityId();
    }

    public int getGoldId() {
        return goldId;
    }

    public void setGoldId(int goldId) {
        this.goldId = goldId;
    }

    public int getSilverId() {
        return silverId;
    }

    public void setSilverId(int silverId) {
        this.silverId = silverId;
    }

    public int getDollId() {
        return dollId;
    }

    public void setDollId(int dollId) {
        this.dollId = dollId;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public int getBossImageId() {
        return bossImageId;
    }

    public void setBossImageId(int bossImageId) {
        this.bossImageId = bossImageId;
    }

    public int getScoreId() {
        return scoreId;
    }

    public void setScoreId(int scoreId) {
        this.scoreId = scoreId;
    }

    public int getGuaranteeNum() {
        return guaranteeNum;
    }

    public void setGuaranteeNum(int guaranteeNum) {
        this.guaranteeNum = guaranteeNum;
    }

    public int getStartNum() {
        return startNum;
    }

    public void setStartNum(int startNum) {
        this.startNum = startNum;
    }

    public Map<Integer, TurtleTemplate> getTemplateMap() {
        return templateMap;
    }

    public void setTemplateMap(Map<Integer, TurtleTemplate> templateMap) {
        this.templateMap = templateMap;
    }

    public Map<Integer, TurtleTemplate> getBadTemplateMap() {
        if (badTemplateMap == null) {
            badTemplateMap = new HashMap<>();
        }
        return badTemplateMap;
    }

    public void setBadTemplateMap(Map<Integer, TurtleTemplate> badTemplateMap) {
        this.badTemplateMap = badTemplateMap;
    }

    public Map<Integer, TurtleTemplate> getGoodTemplateMap() {
        if (goodTemplateMap == null) {
            goodTemplateMap = new HashMap<>();
        }
        return goodTemplateMap;
    }

    public void setGoodTemplateMap(Map<Integer, TurtleTemplate> goodTemplateMap) {
        this.goodTemplateMap = goodTemplateMap;
    }

    public Map<Integer, TurtleModel> getModelMap() {
        return modelMap;
    }

    public void setModelMap(Map<Integer, TurtleModel> modelMap) {
        this.modelMap = modelMap;
    }

    public ActivityInfo getActivityInfo() {
        return activityInfo;
    }

    public void setActivityInfo(ActivityInfo activityInfo) {
        this.activityInfo = activityInfo;
    }
}
